package com.wangyuhang.Controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/*异常处理器*/
@RestControllerAdvice
public class ProjectExceptionAdvice {
    @ExceptionHandler(Exception.class)
    public Result exception(){
        Result result=new Result(null,0000,"出现异常");
         return result;
    }
}
